/**
 ******************************************************************************
 * @file           : bsp_w25qxx.h
 * @brief          : W25Qxx Flash Memory Driver Header (STM32F4xx)
 ******************************************************************************
 */

#ifndef __BSP_W25QXX_H
#define __BSP_W25QXX_H

#include <stdint.h>
#include "./Devices/W25Qxx/bsp_w25qxx_config.h"

uint8_t w25qxx_init(void);
void w25qxx_deinit(void);
uint32_t w25qxx_read_id(void);
uint8_t w25qxx_read(uint32_t addr, uint8_t *buf, uint16_t len);
uint8_t w25qxx_write(uint32_t addr, const uint8_t *buf, uint16_t len);
uint8_t w25qxx_erase_sector(uint32_t addr);
uint8_t w25qxx_erase_chip(void);

#endif
